package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 展览活动
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email
 */
@TableName("zhanlanhuodong")
public class ZhanlanhuodongEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public ZhanlanhuodongEntity() {
		
	}
	
	public ZhanlanhuodongEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 编号
	 */
					
	private String bianhao;
	
	/**
	 * 展览名称
	 */
					
	private String zhanlanmingcheng;
	
	/**
	 * 图片
	 */
					
	private String tupian;
	
	/**
	 * 展览简介
	 */
					
	private String zhanlanjianjie;
	
	/**
	 * 展览时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date zhanlanshijian;
	
	/**
	 * 门票数量
	 */
					
	private Integer menpiaoshuliang;
	
	/**
	 * 展览介绍
	 */
					
	private String zhanlanjieshao;
	
	/**
	 * 赞
	 */
					
	private Integer thumbsupnum;
	
	/**
	 * 踩
	 */
					
	private Integer crazilynum;
	
	/**
	 * 最近点击时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date clicktime;
	
	/**
	 * 点击次数
	 */
					
	private Integer clicknum;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：编号
	 */
	public void setBianhao(String bianhao) {
		this.bianhao = bianhao;
	}
	/**
	 * 获取：编号
	 */
	public String getBianhao() {
		return bianhao;
	}
	/**
	 * 设置：展览名称
	 */
	public void setZhanlanmingcheng(String zhanlanmingcheng) {
		this.zhanlanmingcheng = zhanlanmingcheng;
	}
	/**
	 * 获取：展览名称
	 */
	public String getZhanlanmingcheng() {
		return zhanlanmingcheng;
	}
	/**
	 * 设置：图片
	 */
	public void setTupian(String tupian) {
		this.tupian = tupian;
	}
	/**
	 * 获取：图片
	 */
	public String getTupian() {
		return tupian;
	}
	/**
	 * 设置：展览简介
	 */
	public void setZhanlanjianjie(String zhanlanjianjie) {
		this.zhanlanjianjie = zhanlanjianjie;
	}
	/**
	 * 获取：展览简介
	 */
	public String getZhanlanjianjie() {
		return zhanlanjianjie;
	}
	/**
	 * 设置：展览时间
	 */
	public void setZhanlanshijian(Date zhanlanshijian) {
		this.zhanlanshijian = zhanlanshijian;
	}
	/**
	 * 获取：展览时间
	 */
	public Date getZhanlanshijian() {
		return zhanlanshijian;
	}
	/**
	 * 设置：门票数量
	 */
	public void setMenpiaoshuliang(Integer menpiaoshuliang) {
		this.menpiaoshuliang = menpiaoshuliang;
	}
	/**
	 * 获取：门票数量
	 */
	public Integer getMenpiaoshuliang() {
		return menpiaoshuliang;
	}
	/**
	 * 设置：展览介绍
	 */
	public void setZhanlanjieshao(String zhanlanjieshao) {
		this.zhanlanjieshao = zhanlanjieshao;
	}
	/**
	 * 获取：展览介绍
	 */
	public String getZhanlanjieshao() {
		return zhanlanjieshao;
	}
	/**
	 * 设置：赞
	 */
	public void setThumbsupnum(Integer thumbsupnum) {
		this.thumbsupnum = thumbsupnum;
	}
	/**
	 * 获取：赞
	 */
	public Integer getThumbsupnum() {
		return thumbsupnum;
	}
	/**
	 * 设置：踩
	 */
	public void setCrazilynum(Integer crazilynum) {
		this.crazilynum = crazilynum;
	}
	/**
	 * 获取：踩
	 */
	public Integer getCrazilynum() {
		return crazilynum;
	}
	/**
	 * 设置：最近点击时间
	 */
	public void setClicktime(Date clicktime) {
		this.clicktime = clicktime;
	}
	/**
	 * 获取：最近点击时间
	 */
	public Date getClicktime() {
		return clicktime;
	}
	/**
	 * 设置：点击次数
	 */
	public void setClicknum(Integer clicknum) {
		this.clicknum = clicknum;
	}
	/**
	 * 获取：点击次数
	 */
	public Integer getClicknum() {
		return clicknum;
	}

}
